﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>

<div id="login_area">
    <span id="span_userinfo">
<% if (Request.IsAuthenticated) { %>
    [<%:Html.ActionLink(Page.User.Identity.Name,"Index","User") %>·<%:Html.ActionLink("短消息", "Message", "User",null, new { count = "0" })%>·<%: Html.ActionLink("退出", "Logout", "Account") %>]         
<% } else { %> 
[ <%: Html.ActionLink("登录", "Login", "User")%> · <%:Html.ActionLink("注册", "Register", "User")%> ]
<%}%>
</span>
 </div>
